<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新闻编辑</title>

    <link href="../../style/css/back/style.css"  rel="stylesheet" type="text/css">
    <script src="../../style/js/jquery-1.8.3.js"></script>
    <script src="../../style/js/ajaxfileupload.js"></script>
    <script type="text/javascript">
        function  save(){
            $.post("../../webmsg/save1link",$("#formId").serialize(),function(res){
                if(res.code==202){
                    window.parent.location.replace("list.html");
                }else if(res.code==500){
                    alert("服务器忙,请稍后再试!");
                }else{
                    alert("保存成功!");
                    location.replace("list.html");
                }
            });
        }
    </script>
</head>


<body>
<form id="formId">
    <div class="formbody">
        <div class="formtitle"><span>基本信息</span></div>
        <ul class="forminfo">
            <li>
                <label>友情链接名</label>
                <input name="linkName" id="linkName"  type="text" class="dfinput" />
            </li>
            <li>
                <label>地址：</label>
                <input name="linkUrl" id="linkUrl"  type="text" class="dfinput" />
            </li>

            <li>
                <input  type="button" class="btn" value="确认保存" onclick="save()" />
            </li>
        </ul>
    </div>
</form>
</body>
</html>